package com.filldream.fastboot.base.request.pc.sysDept;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class AddDeptSTO {

    @NotNull
    @Min(value = 0L)
    @ApiModelProperty(value = "父级部门ID")
    private Long parentId;

    @NotEmpty
    @ApiModelProperty(value = "部门名称")
    private String deptName;

    @ApiModelProperty(value = "部门排序，数值越小优先级越高")
    private Integer deptRank;

    @NotEmpty
    @ApiModelProperty(value = "负责人姓名")
    private String leader;

    @NotEmpty
    @ApiModelProperty(value = "负责人手机号")
    private String phone;

    @ApiModelProperty(value = "负责人邮箱")
    private String email;

    @ApiModelProperty(value = "状态 true-启用 false-禁用")
    private Boolean status;

    @NotNull(message = "部门类型不能为空")
    @ApiModelProperty(value = "部门类型 1-公司 0-部门")
    private Integer deptType;

}
